import request from '@/plugins/request';

// 获取代理IP账号列表
export function proxyIpGet (data) {
    return request({
        url: '/qhApi/proxyIp/getUsers',
        method: 'get',
        params: data
    });
}

// 获取地区列表
export function openApiDistrict () {
    return request({
        url: '/qhApi/openApi/districts',
        method: 'get',
    });
}

// 获取项目列表
export function openApiProxyIpProject () {
    return request({
        url: '/qhApi/openApi/proxyIpProjects',
        method: 'get',
    });
}

// 获取代理IP可出售节点列表
export function openApiProxyIpSellNodes (data) {
    return request({
        url: '/qhApi/openApi/proxyIpSellNodes',
        method: 'get',
        params: data
    });
}

// 代理IP下单
export function openApiProxyIpPurchase (data) {
    return request({
        url: '/qhApi/openApi/proxyIpPurchase',
        method: 'post',
        data
    });
}
